package com.settlement.system.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import java.util.HashMap;
import java.util.Map;
<#list table.fields as field>
    <#if field.propertyType == "BigDecimal">
import java.math.BigDecimal;
        <#break>
    </#if>
</#list>
<#list table.fields as field>
    <#if field.propertyName!= "createTime" && field.propertyName!= "updateTime" && field.propertyType=="LocalDateTime">
import java.time.LocalDateTime;
        <#break>
    </#if>
</#list>
<#list table.fields as field>
    <#if field.propertyName!= "createTime" && field.propertyName!= "updateTime" && field.propertyType=="LocalDate">
import java.time.LocalDate;
        <#break>
    </#if>
</#list>

/**
* <p>
* ${table.comment!}导入VO
* </p>
*
* @author ${author}
* @since ${date}
*/
@Schema
@Data
public class ${entity}ImportVo implements Serializable {
<#-- ----------  BEGIN 字段循环遍历  ---------->
    <#list table.fields as field>
        <#if field.propertyName != "id" && field.propertyName != "createTime" && field.propertyName != "updateTime">
        <#-- 普通字段 -->
    @ExcelProperty(value = "${field.comment}")
    private String ${field.propertyName};
        </#if>
    </#list>

    public static Map<String, String> getKeyMap(){
        Map<String, String> map = new HashMap<>();
<#list table.fields as field>
    <#if field.propertyName != "id" && field.propertyName != "createTime" && field.propertyName != "updateTime">
    <#-- 普通字段 -->
        map.put("${field.comment}", "${field.propertyName}");
    </#if>
</#list>
        return map;
    }
}
